
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<link rel=stylesheet href='include/hoj.css' type='text/css'>
</head>
<body>
<center>
<div style="width:90%; text-align:left">
<img src="image/logo.png"/>
</div>
<table width=96%> 
	<tr align="center" class='hd' valign="top">
				<th><a href="faqs.php">F.A.Qs</a></th>
		<th><a href="./bbs.php">Web Board</a></th>
		<th><a href="./">Home</a></th>
		<th><a href="./problemset.html">ProblemSet</a></th>
		<th><a href="./status.php">Status</a></th>
		<th><a href="./ranklist.php">Ranklist</a></th>
		<th><a href="./contest.php">Contest</a></th>
		<th><a href=loginpage.php>Login</a></th><th><a href=registerpage.php>Register</a></th>	</tr>
</table>
</center>
<center>
<div class="notice">
	<div>
		<B>Notice:</B>鉴于种种原因，本OJ自下周星期一（3月5号）开始不再全面开放，请各位做好善后事宜，谢谢合作。	</div>
</div>
</center>
</div>
<title>Problem 1746. -- [Usaco2005 open]Lazy Cows -- 衡阳八中OJ离线版-2012-02-29</title><center><h2>1746: [Usaco2005 open]Lazy Cows</h2><span class=green>Time Limit: </span>5 Sec&nbsp;&nbsp;<span class=green>Memory Limit: </span>64 MB<br><span class=green>Submit: </span>42&nbsp;&nbsp;<span class=green>Solved: </span>28<br>[<a href='submitpage.php?id=1746'>Submit</a>][<a href='problemstatus.php?id=1746'>Status</a>][<a href='bbs.php?id=1746'>Discuss</a>]</center><h2>Description</h2><div class=content>地母是这个世界上大地的主宰，在她眼中整个大地呈现两行N列这样一个状态（难不成她是对子眼?）。在这个大地上如珍珠般散落着各种宝藏，每个宝藏占据一个格子。不过这个消息让天公知道了，他想抢走这些宝藏。地母决定用”无极“牌帆布盖住这些宝藏。值得注意的是”无极“牌帆布全是矩形状的，而且地母现在手头比较紧，她决定用K块帆布盖住所有的宝藏.现在希望你求出这K块帆布的面积最小总和。
输入：
第一行给出三个数，分别代表牛的头数M，帆布的张数K，以及整个大地所呈现的列数N
1 <= N<= 15,000,000, 1 <= M <= 1000,K<=M
下面M行给出两个数，代表每个宝藏所在的位置。
</div><h2>Input</h2><div class=content>* Line 1: Three space-separated integers, N, K, and B.

* Lines 2..N+1: Two space-separated integers in the range (1,1) to
        (2,B) giving the  coordinates of the cell containing each cow.
         No cell contains more than one cow.

</div><h2>Output</h2><div class=content>* Line 1: The minimum area required by the K barns in order to cover
        all of the cows.

</div><h2>Sample Input</h2>
			<div class=content><span class=sampledata>8 2 9<br />
1 2<br />
1 6<br />
1 7<br />
1 8<br />
1 9<br />
2 2<br />
2 3<br />
2 4<br />
<br />
INPUT DETAILS:<br />
<br />
As pictured above.<br />
<br />
</span></div><h2>Sample Output</h2>
			<div class=content><span class=sampledata>10<br />
<br />
OUTPUT DETAILS:<br />
<br />
As discussed above.<br />
</span></div><h2>HINT</h2>
			<div class=content><p></p></div><h2>Source</h2>
			<div class=content><p><a href='problemset.html?search=Gold'>Gold</a></p></div><center>[<a href='submitpage.php?id=1746'>Submit</a>][<a href='problemstatus.php?id=1746'>Status</a>][<a href='bbs.php?id=1746'>Discuss</a>]</center>﻿<br>

<a href="./"><span class=red>HOME</span></a>
<a href="javascript:history.go(-1)"><span class=red>Back</span></a>

<hr>
<center>
	<div class="footer">
			<a href=setlang.php?lang=ko>한국어</a>&nbsp;
		<a href=setlang.php?lang=cn>中文</a>&nbsp;
		<a href=setlang.php?lang=fa>فارسی</a>&nbsp;
		<a href=setlang.php?lang=en>English</a>&nbsp;
		<a href=setlang.php?lang=th>ไทย</a>
	<br>		<div>版权所有 &copy;2008-2012 WaterPark Organization. | <script src="http://s21.cnzz.com/stat.php?id=2982771&web_id=2982771" language="JavaScript"></script>
</div>
		<div>Based on opensource project <a href="http://hustoj.googlecode.com">hustoj</a>.</div>
	</div>
</center>
</body>
</html>
